/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.Airway;

public interface AirwayDao extends Dao {

    /**
     * Retrieves all of the airways
     */
    public List getAirways(Airway airway);

    /**
     * Gets airway's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the airway's id
     * @return airway populated airway object
     */
    public Airway getAirway(final Integer id);

    /**
     * Saves a airway's information
     * @param airway the object to be saved
     */    
    public void saveAirway(Airway airway);

    /**
     * Removes a airway from the database by id
     * @param id the airway's id
     */
    public void removeAirway(Airway airway);
}

